
const f = require('./1.js');

console.log(f)
const res1 = f.f1(1, 2)
console.log(res1)

const res2 = f.f2(1, 2)
console.log(res2)

console.log("--------------")

//引入模块，注意：当前路径必须写 ./
const m = require('./1.js')
console.log(m)
const result1 = m.sum(1, 2)
const result2 = m.subtract(1, 2)
console.log(result1, result2)